9b5d70ab2625a7323e4b4bf6c28a8781d93e33ac,src/com/opencms/workplace/CmsNewResourcePage.java,CmsNewResourcePage,getContent,#CmsObject#String#String#Hashtable#String#,167
Before Change
CmsFile file = cms.createFile(currentFilelist, newFile, content, "page");
cms.lockResource(file.getAbsolutePath());
cms.writeProperty(file.getAbsolutePath(), C_PROPERTY_TITLE, title);
cms.writeProperty(file.getAbsolutePath(), C_PROPERTY_KEYWORDS, keywords);
cms.writeProperty(file.getAbsolutePath(), C_PROPERTY_DESCRIPTION, description);
// now create the page content file
After Change
CmsFile file = cms.createFile(currentFilelist, newFile, content, "page");
cms.lockResource(file.getAbsolutePath());
cms.writeProperty(file.getAbsolutePath(), C_PROPERTY_TITLE, title);
if( keywords != null && !keywords.equals("") ) {
cms.writeProperty(file.getAbsolutePath(), C_PROPERTY_KEYWORDS, keywords);
}
if( description != null && !description.equals("") ) {
cms.writeProperty(file.getAbsolutePath(), C_PROPERTY_DESCRIPTION, description);